<script>
	import { Divider } from '$components/basic';
	export let title = 'title';
	export let loading = false;
</script>

<div class="w-full bg-gray-1 py-20px px-10px shadow-md">
	<div class="title font-size-24px color-gray-5 flex items-center">
		{title}
	</div>
	<Divider style="--mdc-theme-primary: #d1d5db" />
	<div class="w-full color-gray-5 bg-white">
		{#if loading}
			<div class="w-full h-150px flex-cc">Loading...</div>
		{:else}
			<slot></slot>
		{/if}
	</div>
</div>
